import { Get, Post } from "@/api/request";
//获取用户列表
export function getUserData(params) {
  return Get("/manage/list", params);
}
//获取注册审批用户列表
export function getCreateData(params) {
  return Get("/manage/showApproval", params);
}
//获取重置密码用户列表
export function getResetData(params) {
  return Get("/manage/showResetPwd", params);
}
//查找用户
export function searchUserData(params) {
  return Get("/manage/search", params);
}
//注销用户
export function deleteUser(params) {
  return Post("/manage/discard", params);
}
//用户详情里的重置密码
export function onlyResetPwd(params) {
  return Post("/manage/onlyResetPwd", params);
}
//通过重置密码审批
export function passResetPwd(params) {
  return Post("/manage/aprvReset/pass", params);
}
//拒绝重置密码审批
export function rejectResetPwd(params) {
  return Post("/manage/aprvReset/reject", params);
}
//修改用户权限
export function modifyUserType(params) {
  return Post("/manage/modifyUserType", params);
}
//通过注册账号审批
export function approveRegister(params) {
  return Post("/manage/approveRegister", params);
}
//获取部门树列表
export function treeselect() {
  return Get("/dept/deptTree");
}
//获取部门名称列表
export function getDeptNameList() {
  return Get("/dept/nameList");
}
